package com.yinhe.music.yhmusic.model;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.google.gson.annotations.SerializedName;
import com.yinhe.music.yhmusic.db.bean.MenuDBEntity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by hasee on 2017/8/18.
 */

public class SongMenuList implements MultiItemEntity, Serializable {

    private int collectNum;
    private int collectStatus;
    private int commentNum;
    private int editable;
    private String image;
    private int nationalType;
    private int playNum;
    @SerializedName("private")
    private int privateX;
    private int songMenuId;
    private String songMenuName;
    private int songNum;
    private UserInfo userInfo;
    private int pageNum;
    private String username;
    private int itemType;
    private boolean isCheck;

    private List<SongMenuList> songMenuList;

    public SongMenuList(int pageNum, List<SongMenuList> songMenuList) {
        this.pageNum = pageNum;
        this.songMenuList = songMenuList;
    }

    public SongMenuList(MenuDBEntity menuDBEntity) {
        this.collectNum = menuDBEntity.getCollect();
        this.songMenuName = menuDBEntity.getName();
        this.playNum = menuDBEntity.getPlay();
        this.songMenuId = menuDBEntity.getMenuId();
        this.image = menuDBEntity.getImage();
        this.songNum = menuDBEntity.getSongnum();
        this.username = menuDBEntity.getNickname();
        this.itemType = menuDBEntity.getItemType();
        this.isCheck = false;
        this.nationalType = menuDBEntity.getLang();
    }

    public List<SongMenuList> getSongMenuList() {
        return songMenuList;
    }

    public void setSongMenuList(List<SongMenuList> songMenuList) {
        this.songMenuList = songMenuList;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getNationalType() {
        return nationalType;
    }

    public void setNationalType(int nationalType) {
        this.nationalType = nationalType;
    }

    public int getCollectStatus() {
        return collectStatus;
    }

    public void setCollectStatus(int collectStatus) {
        this.collectStatus = collectStatus;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public int getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(int commentNum) {
        this.commentNum = commentNum;
    }


    public void setItemType(int itemType) {
        this.itemType = itemType;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getCollectNum() {
        return collectNum;
    }

    public void setCollectNum(int collectNum) {
        this.collectNum = collectNum;
    }

    public String getSongMenuName() {
        return songMenuName;
    }

    public void setSongMenuName(String songMenuName) {
        this.songMenuName = songMenuName;
    }

    public int getPlay() {
        return playNum;
    }

    public void setPlay(int play) {
        this.playNum = play;
    }

    public int getSongMenuId() {
        return songMenuId;
    }

    public void setSongMenuId(int songMenuId) {
        this.songMenuId = songMenuId;
    }

    @Override
    public int getItemType() {
        return itemType;
    }

    public boolean isCheck() {
        return isCheck;
    }

    public void setCheck(boolean check) {
        isCheck = check;
    }

    public int getSongNum() {
        return songNum;
    }

    public void setSongNum(int songNum) {
        this.songNum = songNum;
    }

    public String getNickname() {
        return username;
    }

    public void setNickname(String nickname) {
        this.username = nickname;
    }

    public int getEditable() {
        return editable;
    }

    public void setEditable(int editable) {
        this.editable = editable;
    }

    public int getPrivateX() {
        return privateX;
    }

    public void setPrivateX(int privateX) {
        this.privateX = privateX;
    }

}
